package agent.memory;

import settings.Settings;

import java.util.Date;

public class MemoryA {
	
	int side, cellCount, ID;
	
	// value shows if goal has been found
	public boolean goalFound;
	
	public int [][] memHits;
	public Date [][] memDate;
	
	public MemoryA( int ID ) {
		
		this.side = Settings.side;
		this.cellCount = Settings.cellCount;
		
		goalFound = false;
		
		memDate = new Date[ side ][ side ];
		memHits = new int[ side ][ side ];
		
		// initialize memory arrays with initial values
		for( int i = 0; i < side; i++ ) {
			for( int j = 0; j < side; j++ ) {
				
				memDate[ i ][ j ] = new Date();
				memHits[ i ][ j ] =  0;
			}
		}
	}
}

